using System;

namespace idseefeld.com.images
{
    /// <summary>
    /// Summary description for DataTypeuploadfieldPng.
    /// </summary>
    public class DataTypeuploadfieldPng : umbraco.cms.businesslogic.datatype.BaseDataType, umbraco.interfaces.IDataType
    {
        private umbraco.interfaces.IDataEditor _Editor;
        private umbraco.interfaces.IData _baseData;
        private umbraco.interfaces.IDataPrevalue _prevalueeditor;

        public override umbraco.interfaces.IDataEditor DataEditor
        {
            get
            {
                if (_Editor == null)
                    _Editor = new uploadfieldPng(Data, ((uploadfieldPngPreValue)PrevalueEditor).Configuration);
                return _Editor;
            }
        }

        public override umbraco.interfaces.IData Data
        {
            get
            {
                if (_baseData == null)
                    _baseData = new umbraco.cms.businesslogic.datatype.DefaultData(this);
                return _baseData;
            }
        }

        public override string DataTypeName
        {
            get { return "idseefeld: Upload field Png"; }
        }

        public override Guid Id
        {
            get { return new Guid("5B54A8D3-E70D-4136-B5D5-60612B51F8FA"); }
        }

        public override umbraco.interfaces.IDataPrevalue PrevalueEditor
        {
            get
            {
                if (_prevalueeditor == null)
                    _prevalueeditor = new uploadfieldPngPreValue(this);
                return _prevalueeditor;
            }
        }
    }
}
